package com.wyzz.hr.pojo.base;

import java.io.Serializable;

import com.wyzz.hr.pojo.Ouqualify;
import com.wyzz.hr.pojo.PositionBase;

public abstract class BaseOuqualify implements Serializable {

	public BaseOuqualify() {
		hashCode = 0x80000000;
		initialize();
	}

	public BaseOuqualify(String id) {
		hashCode = 0x80000000;
		setId(id);
		initialize();
	}

	public BaseOuqualify(String id, String ouqName, Integer ouqSortId) {
		hashCode = 0x80000000;
		setId(id);
		setOuqName(ouqName);
		setOuqSortId(ouqSortId);
		initialize();
	}

	protected void initialize() {
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
		hashCode = 0x80000000;
	}

	public String getOuqName() {
		return ouqName;
	}

	public void setOuqName(String ouqName) {
		this.ouqName = ouqName;
	}

	public String getOuqDesc() {
		return ouqDesc;
	}

	public void setOuqDesc(String ouqDesc) {
		this.ouqDesc = ouqDesc;
	}

	public Integer getOuqSortId() {
		return ouqSortId;
	}

	public void setOuqSortId(Integer ouqSortId) {
		this.ouqSortId = ouqSortId;
	}

	public PositionBase getOuqPbId() {
		return ouqPbId;
	}

	public void setOuqPbId(PositionBase ouqPbId) {
		this.ouqPbId = ouqPbId;
	}

	public boolean equals(Object obj) {
		if (null == obj)
			return false;
		if (!(obj instanceof Ouqualify))
			return false;
		Ouqualify ouqualify = (Ouqualify) obj;
		if (null == getId() || null == ouqualify.getId())
			return false;
		else
			return getId().equals(ouqualify.getId());
	}

	public int hashCode() {
		if (0x80000000 == hashCode) {
			if (null == getId())
				return super.hashCode();
			String hashStr = (new StringBuilder()).append(getClass().getName())
					.append(":").append(getId().hashCode()).toString();
			hashCode = hashStr.hashCode();
		}
		return hashCode;
	}

	public String toString() {
		return super.toString();
	}

	public static String REF = "Ouqualify";
	public static String PROP_OUQ_PB_ID = "ouqPbId";
	public static String PROP_OUQ_NAME = "ouqName";
	public static String PROP_OUQ_DESC = "ouqDesc";
	public static String PROP_OUQ_SORT_ID = "ouqSortId";
	public static String PROP_ID = "id";
	private int hashCode;
	private String id;
	private String ouqName;
	private String ouqDesc;
	private Integer ouqSortId;
	private PositionBase ouqPbId;

}
